package ua.kpi.javatraining.university;

/**
 * @author Vasily Yatsenko
 */
public class Staff extends Person implements Payable {
    private double fee;

    public Staff(Name name, Origin origin, Contacts contacts) {
        super(contacts, origin, name);
        this.fee = 0;
    }

    @Override
    public double getFee() {
        return fee;
    }

    @Override
    public void setFee(double fee) {
        this.fee = fee;
    }

    @Override
    public String toString() {
        StringBuilder builder = new StringBuilder();

        builder.append(super.toString());
        builder.append("Fee: ");
        builder.append(getFee());
        builder.append(".");
        return builder.toString();
    }
}
